package org.eenie.cartoonist.ui;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ScrollView;
import android.widget.TextView;

import org.eenie.cartoonist.R;
import org.eenie.cartoonist.widget.TBMerchandiseLayout;

public class MerchandiseActivity extends AppCompatActivity {

    TBMerchandiseLayout merLayout;
    ScrollView scrollView;
    TextView tv_interrupt;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_merchandise);
        merLayout = (TBMerchandiseLayout) findViewById(R.id.merLayout);
        scrollView = (ScrollView) findViewById(R.id.scrollView);
        tv_interrupt = (TextView) findViewById(R.id.tv_interrupt);



//        merLayout.setInterrupt(true);

    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {

        getMenuInflater().inflate(R.menu.merchandise_menu, menu);

        return super.onCreateOptionsMenu(menu);
    }


    @Override
    public boolean onOptionsItemSelected(MenuItem item) {


        merLayout.toggle();

        return super.onOptionsItemSelected(item);
    }

}
